package thread;

import utils.Account;

public class MyThread extends Thread{
    private Account acc;

    public MyThread(Account acc,String name){
        super(name);
        this.acc = acc;
    }
    @Override
    public void run() {
        acc.drawMoney(1000);
    }
}
